package cn.stylefeng.guns.modular.sht.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 学习历史
 * </p>
 *
 * @author 
 * @since 2021-01-23
 */
@TableName("thesis_st_study_history")
@Data
public class StudyHistory implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("question_bank_id")
    private Integer questionBankId;

    @TableField("open_id")
    private String openId;

    /**
     * 正确题目数
     */
    @TableField("currect")
    private Integer currect;

    /**
     * 错误题目数
     */
    @TableField("wrong")
    private Integer wrong;

    /**
     * 题目总数
     */
    @TableField("total")
    private Integer total;

    /**
     * 刷题轮次 同一次答题此值相同
     */
    @TableField("group_time")
    private String groupTime;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

}
